package com.elinkway.infinitemovies.bean;

import com.lvideo.http.bean.LVideoBaseBean;

/**
 * 友盟上报需要用到的字段
 * @author zhangshuo
 *
 */
public class UMengReport implements LVideoBaseBean {
	
	/**
	 * zhangshuo
	 * 2014年5月5日 下午4:58:49
	 */
	private static final long serialVersionUID = 1L;

	private String isUserH5;

	private String categoryName;
	
	private boolean mIsReported;

	private String name;
	
	private String vid;
	
	private String aid;
	
	private String playresult;
	
	private String from;
	
	/**
	 * 开始加载的时间
	 */
	private long startLoadingTime;
	
	/**
	 * 结束加载的时间
	 */
	private long endLoadingTime;

	public void setIsUserH5(String isUserH5) {
		this.isUserH5 = isUserH5;
	}

	public String getIsUserH5() {
		return isUserH5;
	}

	public void setCategoryName(String name) {
		categoryName = name;
	}

	public String getCategoryName() {
		return categoryName;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVid() {
		return vid;
	}

	public void setVid(String vid) {
		this.vid = vid;
	}

	public String getAid() {
		return aid;
	}

	public void setAid(String aid) {
		this.aid = aid;
	}

	public String getPlayresult() {
		return playresult;
	}

	public void setPlayresult(String playresult) {
		this.playresult = playresult;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}
	

	public boolean ismIsReported() {
		return mIsReported;
	}

	public void setmIsReported(boolean mIsReported) {
		this.mIsReported = mIsReported;
	}

	public long getStartLoadingTime() {
		return startLoadingTime;
	}

	public void setStartLoadingTime(long startLoadingTime) {
		this.startLoadingTime = startLoadingTime;
	}

	public long getEndLoadingTime() {
		return endLoadingTime;
	}

	public void setEndLoadingTime(long endLoadingTime) {
		this.endLoadingTime = endLoadingTime;
	}
	
	public boolean getIsMoreThan30() {
		try {
			return (((endLoadingTime - startLoadingTime) / 1000) > 30);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return false;
	}
	
	public void resetData() {
		mIsReported = false;
		name = "";
		vid = "";
		aid = "";
		playresult = "";
		from = "";
		startLoadingTime = 0;
		endLoadingTime = 0;
	}

}
